/** 端口信息字段生成器 */
export function generatePortInfoVo(data) {
  const vo = {
    delId: null,
    portResblockName: null,
    portBuild: null,
    portUnit: null,
    portDoorNum: null,

    platformResblockId: null,
    platformBuildId: null,
    platformUnitId: null,
    platformDoorNumId: null,

    huShiHao: null,
    buildSizeLocked: null,
    totalPricesPassed: null,
    totalPricesIgnore: null,

    totalPrice: null,
    buildingSize: null,
    publishSize: null,

    portTags: null,
    portType: null,

    onePushFlag: '1', //默认不可发
    delPercentage: '1',

    delegationType: 'SALES',
  };

  for (const key in vo) {
    if (data.hasOwnProperty(key)) {
      vo[key] = data[key];
    }
  }

  return vo;
}